import { SubStateMachine } from "../common/SubStateMachine";
import { DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM } from "../Enum";

export class DirectionSubStateMachine extends SubStateMachine {

  run(): void {
    const value = this.fsm.getParam(PARAMS_NAME_ENUM.DIRECTION)
    this.currentState = this.stateMachine[DIRECTION_ORDER_ENUM[value as number]]
  }
}

